<h1>Listando hitos</h1>

<table>
  <tr>
  <% for column in Hito.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for hito in @hitos %>
  <tr>
  <% for column in Hito.content_columns %>
    <td><%=h hito.send(column.name) %></td>
  <% end %>
    <td><%= link_to 'Ver', :action => 'show', :id => hito %></td>
    <td><%= link_to 'Editar', :action => 'edit', :id => hito %></td>
    <td><%= link_to 'Borrar', { :action => 'destroy', :id => hito }, :confirm => '¿Seguro?', :post => true %></td>
  </tr>
<% end %>
</table>

<% pagination_links @hito_pages %>

<%= link_to 'Anterior', { :page => @hito_pages.current.previous } if @hito_pages.current.previous %>
<%= link_to 'Siguiente', { :page => @hito_pages.current.next } if @hito_pages.current.next %> 

<br />

<%= link_to 'Nuevo hito', :action => 'new' %>
